
/**
 *  WL.Server.invokeHttp(parameters) accepts the following json object as an argument:
 *  
 *  {
 *  	// Mandatory 
 *  	method : 'get' , 'post', 'delete' , 'put' or 'head' 
 *  	path: value,
 *  	
 *  	// Optional 
 *  	returnedContentType: any known mime-type or one of "json", "css", "csv", "javascript", "plain", "xml", "html"  
 *  	returnedContentEncoding : 'encoding', 
 *  	parameters: {name1: value1, ... }, 
 *  	headers: {name1: value1, ... }, 
 *  	cookies: {name1: value1, ... }, 
 *  	body: { 
 *  		contentType: 'text/xml; charset=utf-8' or similar value, 
 *  		content: stringValue 
 *  	}, 
 *  	transformation: { 
 *  		type: 'default', or 'xslFile', 
 *  		xslFile: fileName 
 *  	} 
 *  } 
 */

/**
 * @param interest
 *            must be one of the following: world, africa, sport, technology, ...
 *            (The list can be found in http://edition.cnn.com/services/rss/)
 * @returns json list of items
// */
//function getStories(interest) {
//	path = getPath(interest);
//	
//	var input = {
//	    method : 'get',
//	    returnedContentType : 'xml',
//	    path : path
//	};
//	
//	
//	return WL.Server.invokeHttp(input);
//}
///**
// * 
// * @param interest
// *            must be one of the following: world, africa, sport, technology, ...
// *            (The list can be found in http://edition.cnn.com/services/rss/)
// * @returns json list of items
// */
//function getStoriesFiltered(interest) {
//	path = getPath(interest);
//	
//	var input = {
//	    method : 'get',
//	    returnedContentType : 'xml',
//	    path : path,
//	    transformation : {
//		    type : 'xslFile',
//		    xslFile : 'filtered.xsl'
//	    }
//	};
//	
//	return WL.Server.invokeHttp(input);
//}
//
//
//
//function getPath(interest) {
//	if (interest == undefined || interest == '') {
//		interest = '';
//	}else {
//		interest = '_' + interest;
//	}
//	return 'rss/edition' + interest + '.rss';
//}
//

function getEmployee(){
	var input = {
			method:'get',
			returnedContentType:'json',
			path:"/employee/employee"
	};
	return WL.Server.invokeHttp(input);
}

